package models.states;

import java.util.Set;

import xml.Xml;

public class EncounterState {

	/**
	 * Default Serial id
	 */
	private static final long serialVersionUID = 1L;

	private Set<ActorState>	actorSet = null;

	public EncounterState() {
	}

	public void fromXml(String xml) {
		String	tag = Xml.getFirstXml(xml);
		while (tag!=null && tag.length()>0) {
			ActorState	A = new ActorState();
			String		aXml = Xml.getTag(tag,xml);
			A.fromXml(aXml);
			actorSet.add(A);
			xml.replaceFirst(aXml, "");
		}
	}

	public String toXml(String tag) {
		String	output = "";
		int		actorNum = 0;


		return Xml.write(tag, output);
	}
}
